ga.view.streaming.showroom
Class ShowRoom

java.lang.Object
  extended by com.jme3.scene.Spatial
      extended by com.jme3.scene.Node
          extended by ga.view.streaming.showroom.ShowRoom
All Implemented Interfaces:
com.jme3.asset.CloneableSmartAsset, com.jme3.collision.Collidable, com.jme3.export.Savable, IPhenotypeSpace, java.lang.Cloneable
Direct Known Subclasses:
BoxShowRoom

public abstract class ShowRoom
extends com.jme3.scene.Node
implements IPhenotypeSpace

This is a show room that realizes an IPhenotypeSpace. It has 4 walls and a floor. The walls are transparent when viewed from outside.

Since:
12.08.2012
Author:
Stephan Dreyer

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme3.scene.Spatial
com.jme3.scene.Spatial.BatchHint, com.jme3.scene.Spatial.CullHint
 
Field Summary
protected  com.jme3.material.Material ceilingMaterial
           
static com.jme3.math.ColorRGBA DEFAULT_COLOR
           
protected  com.jme3.material.Material floorMaterial
           
private static java.util.logging.Logger LOGGER
           
private  com.jme3.scene.Spatial phenoType
           
protected  ShowRoomSettings showRoomSettings
           
protected  com.jme3.material.Material wallMaterial
           
protected  com.jme3.material.Material whiteMaterial
           
 
Fields inherited from class com.jme3.scene.Node
children
 
Fields inherited from class com.jme3.scene.Spatial
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_LIGHTLIST, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldTransform
 
Constructor Summary
ShowRoom(java.lang.String name, com.jme3.asset.AssetManager assetManager, com.jme3.system.AppSettings settings, ShowRoomSettings showRoomSettings)
          Instantiates a new show room.
 
Method Summary
 ShowRoomSettings getShowRoomSettings()
          Gets the show room settings.
 com.jme3.material.Material getWallMaterial()
          Gets the wall material.
private  void initMaterials(com.jme3.asset.AssetManager assetManager, com.jme3.system.AppSettings settings)
          Inits the default materials.
 void setPhenotype(com.jme3.scene.Spatial phenotype)
          Sets the phenotype to display inside the room.
 
Methods inherited from class com.jme3.scene.Node
attachChild, attachChildAt, breadthFirstTraversal, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLightListRefresh, setLodLevel, setMaterial, setModelBound, setTransformRefresh, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, updateWorldBound, write
 
Methods inherited from class com.jme3.scene.Spatial
addControl, addLight, breadthFirstTraversal, center, checkCulling, clone, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setParent, setQueueBucket, setShadowMode, setUserData, toString, updateWorldLightList, updateWorldTransforms, worldToLocal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ga.view.interfaces.IPhenotypeSpace
contains, getOutterBounds, minDistanceToWall
 

Field Detail

DEFAULT_COLOR

public static final com.jme3.math.ColorRGBA DEFAULT_COLOR

LOGGER

private static final java.util.logging.Logger LOGGER

whiteMaterial

protected com.jme3.material.Material whiteMaterial

wallMaterial

protected com.jme3.material.Material wallMaterial

floorMaterial

protected com.jme3.material.Material floorMaterial

ceilingMaterial

protected com.jme3.material.Material ceilingMaterial

showRoomSettings

protected final ShowRoomSettings showRoomSettings

phenoType

private com.jme3.scene.Spatial phenoType
Constructor Detail

ShowRoom

public ShowRoom(java.lang.String name,
                com.jme3.asset.AssetManager assetManager,
                com.jme3.system.AppSettings settings,
                ShowRoomSettings showRoomSettings)
Instantiates a new show room.

Parameters:
name - the name
assetManager - the asset manager
settings - the settings
showRoomSettings - the show room settings
Since:
12.08.2012
Method Detail

getWallMaterial

public com.jme3.material.Material getWallMaterial()
Gets the wall material.

Returns:
the wall material
Since:
12.08.2012

initMaterials

private void initMaterials(com.jme3.asset.AssetManager assetManager,
                           com.jme3.system.AppSettings settings)
Inits the default materials.

Parameters:
assetManager - the asset manager
settings - the app settings
Since:
12.08.2012

setPhenotype

public void setPhenotype(com.jme3.scene.Spatial phenotype)
Sets the phenotype to display inside the room.

Parameters:
phenotype - the new phenotype to display.
Since:
12.08.2012

getShowRoomSettings

public ShowRoomSettings getShowRoomSettings()
Gets the show room settings.

Returns:
the show room settings
Since:
12.08.2012